package com.central.scheduler.api.service;

import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.service.ISuperService;
import com.central.scheduler.dao.model.WorkerGroup;

import java.util.Map;

/**
 * @author Tindy
 * @date 2021/7/3
 * @describe
 */
public interface IWorkerGroupService extends ISuperService<WorkerGroup> {

    Result addOrUpdateWorkerGroup(Long proId, WorkerGroup workerGroup);

    void delWorkerGroup(Long id, Long currentProjectId);

    PageResult<WorkerGroup> findWorkerGroupsByPro(Map<String, Object> params);
}